tools/headers: prevent adding two __align8__ to uint64_t in ARM headers
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 26 Apr 2016 10:07:49 +0000 (12:07 +0200)
committerWei Liu <wei.liu2@citrix.com>
Wed, 27 Apr 2016 13:12:28 +0000 (14:12 +0100)
commite69f9a4196ae8e297d6216491a5b9f1fa1a719f8
treed89f6cf59f1d7002a87b47ee841288b091d0cdea
parent1265d06dc17a4a4d5365ba18b511bd5b1633e47b
tools/headers: prevent adding two __align8__ to uint64_t in ARM headers

Due to the fact that on ARM headers types are substituted to uint64_t and
then uint64_t is also substituted to contain the aligment, this would lead
to some types containing two __align8__ directives. Fix this by first
expanding Xen specific types to uint64_t only, and then replacing all the
uint64_t types to __align8__ uint64_t. This relies on the fact that all
Xen-specific types will have longer names, so they will always be replaced
first.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/include/xen-foreign/mkheader.py